package edu.sandau.basic.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "菜单实体类")
public class Menu {

    @Schema(description = "菜单ID", example = "1", accessMode = Schema.AccessMode.READ_ONLY)
    private Integer menu_id;

    @Schema(description = "菜单编码（唯一）", example = "sys_user")
    private String menucode;

    @Schema(description = "菜单层级（1为顶级菜单）", example = "1")
    private Integer level;

    @Schema(description = "父菜单ID（顶级菜单为0）", example = "0")
    private Integer parentid;

    @Schema(description = "显示顺序", example = "1")
    private Integer order;

    @Schema(description = "菜单图标", example = "user-icon.png")
    private String icon;
}
